home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / program / catgen20.zip / CATDOC.BAS < prev    next >
BASIC Source File  |  1996-07-08  |  38KB  |  767 lines

  1. DECLARE SUB OnlineHelp ()
  2. DECLARE SUB InitHelp ()
  3.  
  4. DIM SHARED Text$(238)
  5. DIM SHARED ColorVal(238)
  6. DIM SHARED DoneIt
  7. DIM SHARED Num
  8. DIM SHARED wid
  9.  
  10. 'ON ERROR GOTO ErrorLabel
  11. OnlineHelp                           '| <- This is how to invoke the viewer
  12. END
  13. 'ErrorLabel: BEEP: PRINT "Unexpected Error.  Please re-generate": END
  14.  
  15. Help:
  16. DATA 238
  17. DATA "0F                               CatGen ~04v~092~04.~090"
  18. DATA "03                        ~04(~0FC~04) ~0F1996 ~0EInventive Software"
  19. DATA "03                           ~0AMark Glenn~09, ~04Programmer"
  20. DATA "03                         -------------------------"
  21. DATA "03"
  22. DATA "04    INTRODUCTION"
  23. DATA "01    ------------"
  24. DATA "03"
  25. DATA "0F    CatGen ~04v~092~04.~090 ~03is a program to allow programmers of QB or QBASIC to have a"
  26. DATA "03    useful file to BAS converter."
  27. DATA "03"
  28. DATA "03    Only compiling is required to create these catalogs."
  29. DATA "03"
  30. DATA "04    REQUIREMENTS"
  31. DATA "01    ------------"
  32. DATA "0F      1~04) ~03Color Monitor"
  33. DATA "0F      2~04) ~03QB or QBasic"
  34. DATA "0F      3~04) ~03Hard drive"
  35. DATA "0F      4~04) ~03QB for compilation"
  36. DATA "0F      5~04) ~03Keyboard"
  37. DATA "03"
  38. DATA "04    FEATURES included"
  39. DATA "01    -----------------"
  40. DATA "0F      1~04) ~03Color capability"
  41. DATA "0F      2~04) ~03Speed (YEAH SPEEEEEED)"
  42. DATA "0F      3~04) ~035000 line maximum"
  43. DATA "0F      4~04) ~03Scrolling feature"
  44. DATA "0F      5~04) ~03Convert TEXT to BAS to be compiled"
  45. DATA "0F      6~04) ~03Search Feature (New in release 1.2)"
  46. DATA "0F      7~04) ~03Multi colored lines"
  47. DATA "0F      8~04) ~03Background colors"
  48. DATA "0F      9~04) ~03No flickering"
  49. DATA "0F     10~04) ~03One file only (Doc inside BAS file)"
  50. DATA "03"
  51. DATA "04    TABLE OF CONTENTS"
  52. DATA "01    -----------------"
  53. DATA "0F      1~04) ~03What is CatGen v2.0"
  54. DATA "0F      2~04) ~03What is included"
  55. DATA "0F      3~04) ~03Command line perimeters"
  56. DATA "0F      4~04) ~03What is it doing while running."
  57. DATA "0F      5~04) ~03How does it do all this"
  58. DATA "0F      6~04) ~03I've run it, now what?"
  59. DATA "0F      7~04) ~03Color"
  60. DATA "0F      8~04) ~03Modifying"
  61. DATA "0F      9~04) ~03How do I use the actual compiled work."
  62. DATA "0F     10~04) ~03Final touches"
  63. DATA "03     "
  64. DATA "04    APPENDIXES"
  65. DATA "01    ----------"
  66. DATA "0F      A~04) ~03Trouble Shooting"
  67. DATA "0F      B~04) ~03Upcoming Features"
  68. DATA "0F      C~04) ~03Features of each version."
  69. DATA "0F      D~04) ~03Information about our company"
  70. DATA "0F      E~04) ~03Other programs"
  71. DATA "03"
  72. DATA "0F  1~04) ~0AWhat is CatGen v2.0?"
  73. DATA "01     --------------------"
  74. DATA "03     CatGen v2.0 is a program that takes your TEXT files and converts them"
  75. DATA "03  into self running file viewers.  Not only that, but it is in color. "
  76. DATA "03  Believe it or not, this file was created with CatGen v1.4.  It's"
  77. DATA "03  capabilities are outrages.  It has absolutely no flicker and has incredible"
  78. DATA "03  speed.  It is based on 25x80 screen size and will look quite weird in 50x80."
  79. DATA "03  It has scrolling features that will be used by using the up, down, PGUP, PGDN"
  80. DATA "03  keys.  The best feature though is that you can distribute your file."
  81. DATA "03"
  82. DATA "03     Okay, from v1.4 and on, there is a new feature.(WOW)  It makes Online"
  83. DATA "03  help files.  Cool."
  84. DATA "03"
  85. DATA "0F    2~04) ~0AWhat is included?"
  86. DATA "01     -------------------"
  87. DATA "03     CatGen comes with 9 files"
  88. DATA "03      1: CATGEN.EXE  - The catalog generator"
  89. DATA "03      2: CATDOC.BAS  - This file source code"
  90. DATA "03      3: CATDOC.EXE  - This file"
  91. DATA "03      4: CATGEN.DOC  - This file in TEXT format"
  92. DATA "03      5: ORDER.FRM   - Order and Registration file for other programs"
  93. DATA "03      6: FILE_ID.DIZ - File Info"
  94. DATA "03      7: CATALOG.EXE - Catalog for Inventive Software"
  95. DATA "03"
  96. DATA "0F  3~04) ~0ACommand line perimeters"
  97. DATA "01     -----------------------"
  98. DATA "03     There really is only one command line perimeter."
  99. DATA "03       : CatGen Infile.ext (Outfile.ext)"
  100. DATA "03        The Infile.exe must be include.  Outfile.ext is something that is"
  101. DATA "03        optional.  If you decide not to use this, it will output to CAT1.OUT."
  102. DATA "03"
  103. DATA "0F  4~04) ~0AWhat is it doing while running?"
  104. DATA "01     -------------------------------"
  105. DATA "03     It does multiple things.  It first creates a temp file called TEMP1.TMP"
  106. DATA "03  that holds your DOC with the DATA statements in front of it.  Then it goes"
  107. DATA "03  in and loads all the BASIC statements to run it.  A file is created called"
  108. DATA "03  (filename) and you have a finished product ready to compile."
  109. DATA "03"
  110. DATA "0F  5~04) ~0AHow does it do all this?"
  111. DATA "01     ------------------------"
  112. DATA "03     It takes your file and process it and creates BASIC text.  Take a look at"
  113. DATA "03  the file sometime and see how it is really done."
  114. DATA "03"
  115. DATA "0F  6~04) ~0AI've run it, now what?"
  116. DATA "01     ----------------------"
  117. DATA "03     Okay, you have created your file and now it is time to modify.  Look at"
  118. DATA "03  Chapter 8 for that.  Chapter 7 shows how to change the color of each line."
  119. DATA "03  After that, you want to compile it.  Load the program into QB by typing this:"
  120. DATA "03    QB filename"
  121. DATA "03  Now go to run and compile.  Make it Stand Alone EXE and click on Make EXE"
  122. DATA "03  and Exit."
  123. DATA "03"
  124. DATA "0F  7~04) ~0AColor"
  125. DATA "01     -----"
  126. DATA "03     Wow, I can change color?  Yep, you can.  If you look at the end, you will"
  127. DATA "03  see that is says the DATA statement and then the numbers '03'.  This is the"
  128. DATA "03  color that it changes it all to.  You can change this number to anything."
  129. DATA "03  It must be two digits long like:  03 or C5.  In 2.0, the numbers were"
  130. DATA "03  changed to hex so you can now do backgrounds.  The colors are as following:"
  131. DATA "00  00) BLACK       ~0808) GREY             ~2020) BLACK ON BLUE"
  132. DATA "01  01) BLUE        ~0909) LIGHT BLUE       ~EFEF) BRIGHT WHITE ON WHITE"
  133. DATA "02  02) GREEN       ~0A0A) LIGHT GREEN"
  134. DATA "03  03) CYAN        ~0B0B) LIGHT CYAN"
  135. DATA "04  04) RED         ~0C0C) LIGHT RED"
  136. DATA "05  05) MAGENTA     ~0D0D) LIGHT MAGENTA"
  137. DATA "06  06) BROWN       ~0E0E) YELLOW"
  138. DATA "07  07) WHITE       ~0F0F) BRIGHT WHITE"
  139. DATA "03"
  140. DATA "0F  8~04) ~0AModifying"
  141. DATA "01     ---------"
  142. DATA "03     For people who want to make a big logo on the doc, I included a ANSI to"
  143. DATA "03  CATGEN converter.  All you do is add it to your doc and it will look exactly"
  144. DATA "03  like the ansi file.  (Sorry, no animations and only 25 lines long)."
  145. DATA "03"
  146. DATA "0F  9~04) ~0AHow do I use the actual compiled work?"
  147. DATA "01     --------------------------------------"
  148. DATA "03     Well, you first run the program.  You see the file and information at the"
  149. DATA "03  bottom.  You use the arrow keys or the PGUP or PGDN key.  These move the DOC"
  150. DATA "03  up or down.  The new feature is the  S  feature.  It searches the file for"
  151. DATA "03  whatever you want."
  152. DATA "03"
  153. DATA "0F 10~04) ~0AFinal Touches"
  154. DATA "01     -------------"
  155. DATA "03     Since I don't really know any final touches, but all great DOCs have this"
  156. DATA "03   area.  You can modify the generated file all you want.  The generated viewer"
  157. DATA "03   is freeware and maybe modified and distributed without permission.  Think of"
  158. DATA "03   it as your program you and only you made."
  159. DATA "03"
  160. DATA "0F  A~04) ~0ATrouble Shooting"
  161. DATA "01     ----------------"
  162. DATA "04     1) While compiling, it says an out of memory error"
  163. DATA "0A       A:Try freeing more memory.  If you don't want to do this, if you look"
  164. DATA "0A          at the begining of the file, it shows DIM statements.  Change this"
  165. DATA "0A          to the length of your file.  If you don't know the length, look at"
  166. DATA "0A          the first DATA statement.  It will say something like this:"
  167. DATA "0A           DATA 253"
  168. DATA "0A          Change the DIM statements to:"
  169. DATA "0A           DIM text$(255) 'add 2 just in case"
  170. DATA "0A           DIM ColorVal